Description: Based on the value of the
"action" parameter, this method outputs the forum, a
compose message form, or an individual message display. Note
that a successful call to "load_forum()" must be made
before "show()" can be called.
Tip: Although this function is
flexible and can be used in many different ways, please see the
supplied example file "forum.asp" for an example of how
this function is intended to be used -- Using parameters supplied in
the URL.
The "show()" method works like this:
if( action == "nothing" )
show_forum( width, start, max );
else if( action == "view" )
show_viewmessage( id, width );
else if( action == "post" )
show_composemessage( id );
else
show_forum( width, start, max );
width (optional, String): String representation
of an HTML usable width (i.e. "75%", or "550")
for the output.
action (optional, String): String representing the
action to take. Actions that are understood include
"view", "post", and "nothing".
See above. Note that a successful call to "load_forum()"
must be made before "show()" can be called, and all
actions taken are based on the currently loaded forum.
id (optional, Integer): If the action parameter is
"view," this "id" parameter should indicate the
message ID that which should be displayed. If the action
parameter is "post," this "id" parameter should
indicate the parent ID (or the ID to which the new message will be a
reply), if there is one. If the action parameter is not
supplied, or equal to "nothing," this "id"
parameter is ignored.
start (optional, Integer): If the action parameter is
"nothing" or not supplied, the start parameter is passed
to the show_forum() method as the start value. This parameter
is ignored in all other cases.
max (optional, Integer): If the action parameter
is "nothing" or not supplied, the max parameter is passed
to the show_forum() method as the max value. This parameter is
ignored in all other cases.
Common usage (Jscript):
forumobj.show();
forumobj.show("75%");
forumobj.show("500", "post");
forumobj.show("500", "post", 349);
forumobj.show("100%", "view");
forumobj.show("100%", "nothing", 0, 30, 10);
forumobj.show("90%", action, id, start, 15);
<-- From example file, forum.asp |